import request from "@/utils/request"

// 添加购物车的接口
//goodsData:{skuId:'',count:0}
export const cartAddCart = (goodsData) => request.post('/member/cart', goodsData)

// 获取购物车列表数据接口
export const cartGetCartList = () => request.get('/member/cart')

// 删除购物车商品的接口
export const cartDelCart = (ids) => request.delete('/member/cart', { data: { ids } })

//用户登录时合并本地购物车数据的接口
//arr:[skuId:'',selected:'true/false',count:'1']
export const cartMergeCart = (arr) => request.post('/member/cart/merge', arr)
